<?php  

// Enter your email address here
$adminaddress = "thewarrior@creativewarrior.com"; 

// Enter the address of your website here 
$siteaddress ="http://www.creativewarrior.com"; 

// Enter your company name or site name here 
$sitename = "creativewarrior.com"; 

// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
IF ($action != "")
{
	mail("$adminaddress","SunS iAlbum notification from www.creativewarrior.com", 
"iAlbum is send FROM WEBSITE EMAIL FORM
From: $inputName
Email: $inputEmail
Friend Name: $inputFriend
Friend Email: $inputFriendEmail
Message: $inputMessage
------------------------------
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time:  $date","FROM:$adminaddress"); 

//This sends a confirmation to your visitor
	mail("$inputEmail","Thank You for visiting $sitename",
"Message: $inputMessage

------------------------------

The SunS iAlbum Player has been send to your friend $inputFriend.

We hope you've enjoyed the music.

RAKETAMAGAZIN iAlbum Player is also available on creativewarrior.com,
just click on this link http://www.creativewarrior.com/raketamagazinplayer,
or alternatively copy and paste the URL in to your browser's address field.

Thank you.
------------------------------
$siteaddress","FROM:$adminaddress");

//Ova mu praka mail na prijatelceto
	mail("$inputFriendEmail","Suns iAlbum Player from $sitename",
"Message: $inputMessage

-------------------------------

The SunS iAlbum Player has been send to you from your friend $inputName.
Click on this link: http://www.creativewarrior.com/sunsplayer to listen,
or alternatively copy and paste the URL in to your browser's address field.

RAKETAMAGAZIN iAlbum Player is also available on creativewarrior.com,
just click on this link http://www.creativewarrior.com/raketamagazinplayer,
or alternatively copy and paste the URL in to your browser's address field.


We hope you'll enjoy the music.
------------------------------
$siteaddress","FROM:$adminaddress");
 

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Done!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);

//echo "$send_answer";

}

?>